package org.example.distributedid;

import com.github.f4b6a3.uuid.UuidCreator;

import java.util.UUID;

/**
 * 生成uuid  以及 uuid v7 支持有序
 */
public class UuidV7 {
    public static void main(String[] args) {
        UUID timeOrdered = UuidCreator.getTimeOrdered();
        //1f0b2470-6ff1-62e5-bc81-5df823741871
        //1f0b2470-d8a9-620d-b462-9339e9dfdcef
        System.out.println(timeOrdered.toString().replaceAll("-", "").length());

    }
}
